
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录页面</title>
</head>
<link type="text/css" href="<%= request.getContextPath()%>/css/login.css" rel="stylesheet">
<body>

<div class="top"></div>
  <div class="main">
      <div class="font-1">carpool拼车网</div>
      <form action="<%= request.getContextPath() %>/login" method="post">
          <div> 账号：<input onblur="if($(this).val()==''){alert('账号不能为空')}" class="input_name" type="text" name="account" placeholder="请输入账号..."> </div>
          <div> 密码：<input onblur="if($(this).val()==''){alert('密码不能为空')}" class="input_name" type="password" name="password" placeholder="请输入密码..."> </div>
          <div>
              <button class="mid-button">
                    登录
              </button>
          </div>

          没有账号？点击<a style="list-style: none;font-size: 16px;text-decoration: none" href="<%= request.getContextPath() %>/register.jsp">注册</a>
      </form>
    <form class="layui-form" action="<%= request.getContextPath()%>/login" method="post">

        <div class="layui-form-item">
            <label class="layui-form-label">账号</label>
            <div class="layui-input-inline">
                <input type="text" name="account" required lay-verify="required" placeholder="请输入账号"
                       autocomplete="off" class="layui-input">
            </div>

        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">密码</label>
            <div class="layui-input-inline">
                <input type="text" name="password" required lay-verify="required" placeholder="请输入密码"
                       autocomplete="off" class="layui-input">
            </div>

        </div>

        <div >
            <div>
                <button class="mid-button">
                    登录
                </button>
            </div>
        </div>
        没有账号？点击<a style="list-style: none;font-size: 16px;text-decoration: none" href="<%= request.getContextPath() %>/register.jsp">注册</a>
    </form>
  </div>



</body>
<%@include file="components/base.jsp"%>


</html>
